package svc

import (
	"230311house/api/internal/config"
	"230311house/hourpc/hourpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config config.Config
	HouRpc hourpcclient.Hourpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		HouRpc: hourpcclient.NewHourpc(zrpc.MustNewClient(c.HouRpc)),
	}
}
